package com.diandian.util;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

/**
 * @description ThreadUtils
 * @author TDW
 * @date 2016年11月14日
 */
public abstract class ThreadUtils {

	private static ExecutorService executor = Executors.newCachedThreadPool();

	/**
	 * 调用线程类
	 * 
	 * @param run
	 */
	public static void invoke(Runnable run) {
		if (run != null) {
			executor.execute(run);
		}
	}

}
